gdk: fix crash if visual is NULL
authorIgnacio Casal Quinteiro <icq@gnome.org>
Fri, 17 Jul 2015 07:31:32 +0000 (09:31 +0200)
committerIgnacio Casal Quinteiro <icq@gnome.org>
Fri, 17 Jul 2015 12:26:11 +0000 (14:26 +0200)
commit186c8f5254a7b9b29df6d9708a5d10f869d6829d
tree802ff9af12f7acdb9bb97833f9604ea4c81acb08
parent02577ddb06d9fe9f9ddc2813d15f8c2100e31c36
gdk: fix crash if visual is NULL

cairo_xlib_surface_get_visual might return NULL so we need to
check for NULL before trying to use it.

https://bugzilla.gnome.org/show_bug.cgi?id=752520
gdk/x11/gdkglcontext-x11.c